package com.treetao.union.db.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.treetao.union.db.model.base.TTBaseVO;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品评论
 * </p>
 *
 * @author Dev.M
 * @since 2020-04-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("mall_p_comment")
public class MallPComment extends TTBaseVO<MallPComment> {

    private static final long serialVersionUID = 1L;

	private Long userId;
	private Long spuId;
	private Long skuId;
    /**
     * 评论内容
     */
	private String content;
    /**
     * 字符数组JSOn
     */
	private String imageArr;
    /**
     * 评星
     */
	private Integer star;
    /**
     * 当时购买sku信息，如：XX裙子/白色/XL，方便显示用
     */
	private String skuInfo;
	/**
	 * 评论时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
	private Date commentTime;
	
	@TableField(exist = false)
	private CommonUser user;
}
